﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.RCSDecoupling.CUiRCSDecoupleReadOnlyCell
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll


namespace DnProcessSimulateCommands.RCSDecoupling;

internal struct CUiRCSDecoupleReadOnlyCell(int row, int col)
{
  private int m_row = row;
  private int m_col = col;

  public static bool operator ==(CUiRCSDecoupleReadOnlyCell roc1, CUiRCSDecoupleReadOnlyCell roc2)
  {
    return roc1.m_row == roc2.m_row && roc1.m_col == roc2.m_col;
  }

  public static bool operator !=(CUiRCSDecoupleReadOnlyCell roc1, CUiRCSDecoupleReadOnlyCell roc2)
  {
    return !(roc1 == roc2);
  }

  public override bool Equals(object obj)
  {
    return obj is CUiRCSDecoupleReadOnlyCell decoupleReadOnlyCell && this == decoupleReadOnlyCell;
  }

  public override int GetHashCode()
  {
    return (this.m_row & (int) ushort.MaxValue) << 16 /*0x10*/ | this.m_row & (int) ushort.MaxValue;
  }
}
